﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200112B RID: 4395
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetAssistAvatarScRsp : IMessage<SetAssistAvatarScRsp>, IMessage, IEquatable<SetAssistAvatarScRsp>, IDeepCloneable<SetAssistAvatarScRsp>, IBufferMessage
	{
		// Token: 0x170037AC RID: 14252
		// (get) Token: 0x0600C4B5 RID: 50357 RVA: 0x00213BF9 File Offset: 0x00211DF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetAssistAvatarScRsp> Parser
		{
			get
			{
				return SetAssistAvatarScRsp._parser;
			}
		}

		// Token: 0x170037AD RID: 14253
		// (get) Token: 0x0600C4B6 RID: 50358 RVA: 0x00213C00 File Offset: 0x00211E00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetAssistAvatarScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170037AE RID: 14254
		// (get) Token: 0x0600C4B7 RID: 50359 RVA: 0x00213C12 File Offset: 0x00211E12
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetAssistAvatarScRsp.Descriptor;
			}
		}

		// Token: 0x0600C4B8 RID: 50360 RVA: 0x00213C19 File Offset: 0x00211E19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAssistAvatarScRsp()
		{
		}

		// Token: 0x0600C4B9 RID: 50361 RVA: 0x00213C2C File Offset: 0x00211E2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAssistAvatarScRsp(SetAssistAvatarScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.avatarIdList_ = other.avatarIdList_.Clone();
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C4BA RID: 50362 RVA: 0x00213C79 File Offset: 0x00211E79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAssistAvatarScRsp Clone()
		{
			return new SetAssistAvatarScRsp(this);
		}

		// Token: 0x170037AF RID: 14255
		// (get) Token: 0x0600C4BB RID: 50363 RVA: 0x00213C81 File Offset: 0x00211E81
		// (set) Token: 0x0600C4BC RID: 50364 RVA: 0x00213C89 File Offset: 0x00211E89
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170037B0 RID: 14256
		// (get) Token: 0x0600C4BD RID: 50365 RVA: 0x00213C92 File Offset: 0x00211E92
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> AvatarIdList
		{
			get
			{
				return this.avatarIdList_;
			}
		}

		// Token: 0x170037B1 RID: 14257
		// (get) Token: 0x0600C4BE RID: 50366 RVA: 0x00213C9A File Offset: 0x00211E9A
		// (set) Token: 0x0600C4BF RID: 50367 RVA: 0x00213CA2 File Offset: 0x00211EA2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x0600C4C0 RID: 50368 RVA: 0x00213CAB File Offset: 0x00211EAB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetAssistAvatarScRsp);
		}

		// Token: 0x0600C4C1 RID: 50369 RVA: 0x00213CBC File Offset: 0x00211EBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetAssistAvatarScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.avatarIdList_.Equals(other.avatarIdList_) && this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C4C2 RID: 50370 RVA: 0x00213D1C File Offset: 0x00211F1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.avatarIdList_.GetHashCode();
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C4C3 RID: 50371 RVA: 0x00213D82 File Offset: 0x00211F82
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C4C4 RID: 50372 RVA: 0x00213D8A File Offset: 0x00211F8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C4C5 RID: 50373 RVA: 0x00213D94 File Offset: 0x00211F94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.AvatarId);
			}
			this.avatarIdList_.WriteTo(ref output, SetAssistAvatarScRsp._repeated_avatarIdList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C4C6 RID: 50374 RVA: 0x00213E00 File Offset: 0x00212000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.avatarIdList_.CalculateSize(SetAssistAvatarScRsp._repeated_avatarIdList_codec);
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C4C7 RID: 50375 RVA: 0x00213E6C File Offset: 0x0021206C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetAssistAvatarScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.avatarIdList_.Add(other.avatarIdList_);
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C4C8 RID: 50376 RVA: 0x00213ECD File Offset: 0x002120CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C4C9 RID: 50377 RVA: 0x00213ED8 File Offset: 0x002120D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 104U)
				{
					if (num == 88U)
					{
						this.AvatarId = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						goto IL_3F;
					}
				}
				else
				{
					if (num == 106U)
					{
						goto IL_3F;
					}
					if (num == 120U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_3F:
				this.avatarIdList_.AddEntriesFrom(ref input, SetAssistAvatarScRsp._repeated_avatarIdList_codec);
			}
		}

		// Token: 0x04004F4E RID: 20302
		private static readonly MessageParser<SetAssistAvatarScRsp> _parser = new MessageParser<SetAssistAvatarScRsp>(() => new SetAssistAvatarScRsp());

		// Token: 0x04004F4F RID: 20303
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004F50 RID: 20304
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04004F51 RID: 20305
		private uint retcode_;

		// Token: 0x04004F52 RID: 20306
		public const int AvatarIdListFieldNumber = 13;

		// Token: 0x04004F53 RID: 20307
		private static readonly FieldCodec<uint> _repeated_avatarIdList_codec = FieldCodec.ForUInt32(106U);

		// Token: 0x04004F54 RID: 20308
		private readonly RepeatedField<uint> avatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04004F55 RID: 20309
		public const int AvatarIdFieldNumber = 11;

		// Token: 0x04004F56 RID: 20310
		private uint avatarId_;
	}
}
